package com.atguigu.mybatis.vo;

import com.atguigu.mybatis.entity.Classes;

//定义向外部呈现的学生视图类
public class StudentVo {

    private int id;
    private String name;
    private String no;
    private String gender;

    //班级相关信息
//    private int class_id;
//    private String className;
    private Classes classObj;

    @Override
    public String toString() {
        return "StudentVo{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", no='" + no + '\'' +
                ", gender='" + gender + '\'' +
                ", classObj=" + classObj +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public Classes getClassObj() {
        return classObj;
    }

    public void setClassObj(Classes classObj) {
        this.classObj = classObj;
    }
}
